package com.zone.api.di

import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response

/**
 *Author: last
 *Time: 2024/1/20
 *Description: xxx
 */

class  SignInterceptor : Interceptor {

    override fun intercept(chain: Interceptor.Chain): Response {
        var request = chain.request()

        Log.d("TAG", "intercept: ===="+request.url)
//        if (request.url.encodedPath != "/v1/user/login/"&& request.url.encodedPath != "/soft") {
//            authInfo.token?.let { token ->
//                request = request.newBuilder()
//                    .addHeader("Authorization", "JWT $token")
//                    .build()
//            }
//        }
        return chain.proceed(request)
    }
}